﻿using System.ComponentModel;
using CozeDomain.Base;
using FreeSql.DataAnnotations;

namespace CozeDomain.Entities
{
    /// <summary>
    /// 分销记录历史模型
    /// </summary>
    [Table(Name = "SaleHistory")]
    [Description("分销记录历史")]
    public class SaleHistoryEntity : BaseTenantsEntity
    {
        /// <summary>
        /// 项目名称
        /// </summary>
        [Column(DbType = "varchar", StringLength = 18, IsNullable = false)]
        [Description("项目名称")]
        public string? Name { get; set; }

        /// <summary>
        /// 购买人员
        /// </summary>
        [Column(DbType = "varchar", StringLength = 36, IsNullable = true)]
        [Description("购买人员")]
        public string? BuyUserId { get; set; }

        /// <summary>
        /// 购买价格
        /// </summary>
        [Column(DbType = "double", StringLength = 18, IsNullable = true)]
        [Description("购买价格")]
        public double? Price { get; set; }

        /// <summary>
        /// 返现设定
        /// </summary>
        [Column(DbType = "double", StringLength = 18, IsNullable = false)]
        [Description("返现设定")]
        public double? CashbackAmountLimit { get; set; }

        /// <summary>
        /// 返现金额
        /// </summary>
        [Column(DbType = "double", StringLength = 18, IsNullable = false)]
        [Description("返现金额")]
        public double? CashbackAmount { get; set; }
    }
}
